<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "product";
$route['404_override'] = 'errors/error_404';

/*$array_routing = array(
 	//for custom user url segment
 	'ctme_common' => array('logout','no_allow_access','no_allow_modify','change_password','my_profile'),
 	'manage_users' => array('insert_user','delete_user','update_user'),
 	'manage_user_permissions' => array('insert_user_permission','delete_user_permission','update_user_permission','user_modules'),
	'account'=>array('favorite','remove_favorite_product','sign_in','sign_up','forgotten','update_account','change_password','newsletter','contact','products','post_product','update_product','delete_product','mails','view_mail','delete_mail','feedback','delete_feedback','logout','activate_new_password'),
	'manage_config' => array(),
	'information' => array('about_us','contact','privacy_policy','terms_conditions'),
	'product' => array('category','brand','detail','search')
	);
if(count($array_routing) > 0){
	foreach ($array_routing as $routing_controll => $routing_functions) {
		$route[str_replace('_', '-', $routing_controll)] = str_replace('-', '_', $routing_controll);
		if(is_array($routing_functions) && count($routing_functions) > 0){
			foreach ($routing_functions as $function) {
				$route[str_replace('_', '-', $routing_controll).'/'.str_replace('_', '-', $function)] = str_replace('-', '_', $routing_controll).'/'.str_replace('-', '_', $function);
				$route[str_replace('_', '-', $routing_controll).'/'.str_replace('_', '-', $function).'/:any'] = str_replace('-', '_', $routing_controll).'/'.str_replace('-', '_', $function);
			}
		}
	}
}*/

/* End of file routes.php */
/* Location: ./application/config/routes.php */